.TH std::basic_ofstream::operator= 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::basic_ofstream::operator= \- std::basic_ofstream::operator=

.SH Synopsis
   basic_ofstream& operator=( basic_ofstream&& other );  \fI(since C++11)\fP

   Move assigns the file stream other to *this, effectively move-assigning both the
   std::basic_ostream base class and the associated std::basic_filebuf.

   other is left with no associated file. Note that the base class move assignment
   swaps all stream state variables (except for rdbuf) between *this and other.

.SH Parameters

   other - file stream to move

.SH Return value

   *this

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   swap      swaps two file streams
   \fI(C++11)\fP   \fI(public member function)\fP
   operator= assigns a basic_filebuf object
   \fI(C++11)\fP   \fI(public member function of std::basic_filebuf<CharT,Traits>)\fP
   operator= move-assigns from another basic_ostream
   \fI(C++11)\fP   \fI(protected member function)\fP

.SH Category:
     * Todo no example
